<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class CurlUtils</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class CurlUtils</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A collection of utility methods for working with cURL.</p>
		<p class="notes">
			Located in <a class="field" href="_common---src---Google---Api---Ads---Common---Util---CurlUtils.php.html">/common/src/Google/Api/Ads/Common/Util/CurlUtils.php</a> (line <span class="field">30</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																												
												<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#Close" title="details" class="method-name">Close</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">the</span>
										<a href="#CreateSession" title="details" class="method-name">CreateSession</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#Error" title="details" class="method-name">Error</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#Exec" title="details" class="method-name">Exec</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#GetInfo" title="details" class="method-name">GetInfo</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$opt</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#Init" title="details" class="method-name">Init</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$url</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#SetOpt" title="details" class="method-name">SetOpt</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$option</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$value</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodClose" id="Close"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Close</span> (line <span class="line-number">132</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Wraps the global curl function  <a href="http://php.net/manual/en/function.curl-close.php">http://php.net/manual/en/function.curl-close.php</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Close
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$ch</span>			</li>
				</ul>
		
			
	</div>
<a name="methodCreateSession" id="CreateSession"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">CreateSession</span> (line <span class="line-number">37</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates a new cURL session with the default options applied.</p>
	<ul class="tags">
				<li><span class="field">return:</span> cURL handle for the new session</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">the</span>
		<span class="method-name">
			CreateSession
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: the URL of the resource to connect to</span>			</li>
				</ul>
		
			
	</div>
<a name="methodError" id="Error"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Error</span> (line <span class="line-number">124</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Wraps the global curl function  <a href="http://php.net/manual/en/function.curl-error.php">http://php.net/manual/en/function.curl-error.php</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Error
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$ch</span>			</li>
				</ul>
		
			
	</div>
<a name="methodExec" id="Exec"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Exec</span> (line <span class="line-number">108</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Wraps the global curl function  <a href="http://php.net/manual/en/function.curl-exec.php">http://php.net/manual/en/function.curl-exec.php</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Exec
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$ch</span>			</li>
				</ul>
		
			
	</div>
<a name="methodGetInfo" id="GetInfo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">GetInfo</span> (line <span class="line-number">116</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Wraps the global curl function  <a href="http://php.net/manual/en/function.curl-getinfo.php">http://php.net/manual/en/function.curl-getinfo.php</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			GetInfo
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$opt</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$ch</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$opt</span>			</li>
				</ul>
		
			
	</div>
<a name="methodInit" id="Init"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Init</span> (line <span class="line-number">92</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Wraps the global curl function  <a href="http://php.net/manual/en/function.curl-init.php">http://php.net/manual/en/function.curl-init.php</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Init
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$url</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$url</span>			</li>
				</ul>
		
			
	</div>
<a name="methodSetOpt" id="SetOpt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">SetOpt</span> (line <span class="line-number">100</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Wraps the global curl function  <a href="http://php.net/manual/en/function.curl-setopt.php">http://php.net/manual/en/function.curl-setopt.php</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			SetOpt
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$ch</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$option</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$ch</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$option</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>